import cn from "classnames"

interface Props {
  className?: string
  onClick?: () => void
}

const BugIcon = ({ className, onClick }: Props) => (
  <span className={cn(className, "anticon anticon-bug")} role="img" aria-label="bug" onClick={onClick}>
    <svg
      xmlns="http://www.w3.org/2000/svg"
      viewBox="0 0 50 50"
      focusable="false"
      data-icon="bug"
      width="1em"
      height="1em"
      fill="currentColor"
      aria-hidden="true"
    >
      <path d="M 25 3 C 22.636719 3 20.566406 4.390625 19.59375 6.4375 C 21.199219 6.113281 22.996094 5.9375 25 5.9375 C 27.007813 5.9375 28.800781 6.113281 30.40625 6.4375 C 29.4375 4.390625 27.375 3 25 3 Z M 25 7.9375 C 19.195313 7.9375 12.9375 9.46875 12.9375 15 C 12.9375 16.195313 13.101563 17.21875 13.40625 18.125 C 14.210938 18.203125 15.03125 18.449219 16.03125 18.71875 C 17.9375 19.234375 20.820313 20 25 20 C 28.804688 20 31.523438 19.421875 33.5 19 C 34.648438 18.753906 35.578125 18.570313 36.46875 18.53125 C 36.871094 17.539063 37.0625 16.367188 37.0625 15 C 37.0625 9.46875 30.804688 7.9375 25 7.9375 Z M 3 8 C 2.449219 8 2 8.449219 2 9 C 2 14.769531 3.3125 18.914063 5.90625 21.34375 C 7.453125 22.789063 9.089844 23.265625 10.09375 23.40625 C 10.007813 24.472656 10 25.773438 10 27.46875 C 10 27.632813 10.027344 27.800781 10.03125 27.96875 L 2 27.96875 C 1.4375 27.96875 0.96875 28.4375 0.96875 29 C 0.96875 29.5625 1.4375 30.03125 2 30.03125 L 10.15625 30.03125 C 10.375 31.828125 10.851563 33.617188 11.53125 35.3125 C 9 35.917969 2 38.25 2 46 C 2 46.554688 2.449219 47 3 47 C 3.550781 47 4 46.554688 4 46 C 4 39.125 10.757813 37.429688 12.375 37.125 C 14.652344 41.476563 18.542969 44.9375 24 45.84375 L 24 29 C 24 28.445313 24.449219 28 25 28 C 25.550781 28 26 28.445313 26 29 L 26 45.84375 C 31.457031 44.9375 35.378906 41.507813 37.65625 37.15625 C 39.363281 37.488281 46 39.199219 46 46 C 46 46.554688 46.445313 47 47 47 C 47.554688 47 48 46.554688 48 46 C 48 38.25 41 35.917969 38.46875 35.3125 C 39.148438 33.617188 39.625 31.828125 39.84375 30.03125 L 48 30.03125 C 48.5625 30.03125 49.03125 29.5625 49.03125 29 C 49.03125 28.4375 48.5625 27.96875 48 27.96875 L 39.96875 27.96875 C 39.972656 27.800781 40 27.632813 40 27.46875 C 40 25.808594 39.992188 24.476563 39.84375 23.40625 C 40.84375 23.273438 42.519531 22.816406 44.09375 21.34375 C 46.6875 18.914063 48 14.769531 48 9 C 48 8.449219 47.554688 8 47 8 C 46.863281 8 46.746094 8.042969 46.625 8.09375 C 46.503906 8.144531 46.371094 8.191406 46.28125 8.28125 C 46.101563 8.460938 46 8.722656 46 9 C 46 14.085938 44.898438 17.828125 42.78125 19.84375 C 41.460938 21.101563 40.082031 21.378906 39.4375 21.4375 C 39.292969 21.449219 39.25 21.46875 39.1875 21.46875 C 38.714844 20.835938 37.960938 20.5 36.78125 20.5 C 36 20.5 35.085938 20.714844 33.90625 20.96875 C 31.84375 21.40625 29.015625 22 25 22 C 20.554688 22 17.507813 21.167969 15.5 20.625 C 14.351563 20.3125 13.546875 20.09375 12.8125 20.09375 C 11.558594 20.09375 10.851563 20.484375 10.46875 21.40625 C 9.808594 21.332031 8.535156 21.078125 7.28125 19.90625 C 5.136719 17.898438 4 14.121094 4 9 C 4 8.449219 3.550781 8 3 8 Z" />
    </svg>
  </span>
)

export default BugIcon
